x86 / vmx: move teardown from domain_destroy()...
authorPaul Durrant <pdurrant@amazon.com>
Mon, 3 Feb 2020 12:08:44 +0000 (13:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2020 12:08:44 +0000 (13:08 +0100)
commit4e0e20eab64251f7f678faf6db8b11eee66a5def
tree4026d9474ff680075d7bed7c7af45f0199ebdfee
parentef4666f63c9677b22a05b204e85fef5f207c0a5c
x86 / vmx: move teardown from domain_destroy()...

... to domain_relinquish_resources().

The teardown code frees the APICv page. This does not need to be done late
so do it in domain_relinquish_resources() rather than domain_destroy().

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmx.c